package com.taotao.rest.dao;

/**
 * Created by zhaoliang on 2017/7/22.
 */
public interface JedisClient {
    //获取值
    String get(String key);
    //保存值
    String set(String key,String value);
    //获hash值
    String hget(String hkey,String key);
    //保存hash值
    long hset(String hkey,String key,String value);
    //自增
    long incr(String key);
    //过期时间
    long expire(String key, int second);
    //
    long ttl(String key);
    //删除缓存
    long del(String key);
    //删除hash值
    long hdel(String hkey,String key);
}
